package com.niguang.labour.admin.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 
 * @since 2018-09-29
 */
@TableName("work_reform_content")
public class WorkReformContent extends Model<WorkReformContent> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 提交人openId
     */
	@TableField("open_id")
	private String openId;
    /**
     * 提交人userId
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 提交人电话号码
     */
	@TableField("user_phone")
	private String userPhone;
    /**
     * 提交人姓名
     */
	@TableField("user_name")
	private String userName;
    /**
     * 工作职位
     */
	@TableField("job_position")
	private String jobPosition;
    /**
     * 工地ID
     */
	@TableField("site_id")
	private Long siteId;
    /**
     * 项目名称
     */
	@TableField("site_name")
	private String siteName;
    /**
     * 积分
     */
	private Integer integral;
    /**
     * 隐患部位
     */
	@TableField("danger_title")
	private String dangerTitle;
    /**
     * 隐患图片
     */
	@TableField("danger_pic")
	private String dangerPic;
    /**
     * 隐患描述
     */
	@TableField("danger_desc")
	private String dangerDesc;
    /**
     * 是否启用(启用后放入需求池)  0-启用 1-不启用
     */
	@TableField("enable_flag")
	private Integer enableFlag;
    /**
     * 审核状态 1-待审核 2-无需整改 3-待整改 4-待复查 5-已完成
     */
	@TableField("apply_flag")
	private Integer applyFlag;
    /**
     * 1--安全隐患 2--质量隐患
     */
	@TableField("form_flag")
	private Integer formFlag;
	@TableField("create_time")
	private Date createTime;
	@TableField("update_time")
	private Date updateTime;
    /**
     * 隐患级别 1-一般 2-较大 3-重大 4-特大
     */
	@TableField("danger_level")
	private Integer dangerLevel;
    /**
     * 整改期限
     */
	@TableField("reform_term")
	private Date reformTerm;
	@TableField("union_id")
	private String unionId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getJobPosition() {
		return jobPosition;
	}

	public void setJobPosition(String jobPosition) {
		this.jobPosition = jobPosition;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public String getDangerTitle() {
		return dangerTitle;
	}

	public void setDangerTitle(String dangerTitle) {
		this.dangerTitle = dangerTitle;
	}

	public String getDangerPic() {
		return dangerPic;
	}

	public void setDangerPic(String dangerPic) {
		this.dangerPic = dangerPic;
	}

	public String getDangerDesc() {
		return dangerDesc;
	}

	public void setDangerDesc(String dangerDesc) {
		this.dangerDesc = dangerDesc;
	}

	public Integer getEnableFlag() {
		return enableFlag;
	}

	public void setEnableFlag(Integer enableFlag) {
		this.enableFlag = enableFlag;
	}

	public Integer getApplyFlag() {
		return applyFlag;
	}

	public void setApplyFlag(Integer applyFlag) {
		this.applyFlag = applyFlag;
	}

	public Integer getFormFlag() {
		return formFlag;
	}

	public void setFormFlag(Integer formFlag) {
		this.formFlag = formFlag;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getDangerLevel() {
		return dangerLevel;
	}

	public void setDangerLevel(Integer dangerLevel) {
		this.dangerLevel = dangerLevel;
	}

	public Date getReformTerm() {
		return reformTerm;
	}

	public void setReformTerm(Date reformTerm) {
		this.reformTerm = reformTerm;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public static final String ID = "id";

	public static final String OPEN_ID = "open_id";

	public static final String USER_ID = "user_id";

	public static final String USER_PHONE = "user_phone";

	public static final String USER_NAME = "user_name";

	public static final String JOB_POSITION = "job_position";

	public static final String SITE_ID = "site_id";

	public static final String SITE_NAME = "site_name";

	public static final String INTEGRAL = "integral";

	public static final String DANGER_TITLE = "danger_title";

	public static final String DANGER_PIC = "danger_pic";

	public static final String DANGER_DESC = "danger_desc";

	public static final String ENABLE_FLAG = "enable_flag";

	public static final String APPLY_FLAG = "apply_flag";

	public static final String FORM_FLAG = "form_flag";

	public static final String CREATE_TIME = "create_time";

	public static final String UPDATE_TIME = "update_time";

	public static final String DANGER_LEVEL = "danger_level";

	public static final String REFORM_TERM = "reform_term";

	public static final String UNION_ID = "union_id";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkReformContent{" +
			"id=" + id +
			", openId=" + openId +
			", userId=" + userId +
			", userPhone=" + userPhone +
			", userName=" + userName +
			", jobPosition=" + jobPosition +
			", siteId=" + siteId +
			", siteName=" + siteName +
			", integral=" + integral +
			", dangerTitle=" + dangerTitle +
			", dangerPic=" + dangerPic +
			", dangerDesc=" + dangerDesc +
			", enableFlag=" + enableFlag +
			", applyFlag=" + applyFlag +
			", formFlag=" + formFlag +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", dangerLevel=" + dangerLevel +
			", reformTerm=" + reformTerm +
			", unionId=" + unionId +
			"}";
	}
}
